<template>
  <div class="common-layout">
    <el-container>
      <!-- 侧边栏组件 -->
      <common-aside></common-aside>
     
      <el-container class="header-main-box">
        <!-- header组件 -->
        <common-header></common-header>
        <el-main>
            <!-- 页面的路由出口 -->
        <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup>
import CommonHeader from '@/components/CommonHeader.vue';
import CommonAside from '@/components/CommonAside.vue';

</script>

<style lang="less">
.el-container{
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  width: 100%;
  height: 100%;
}
.common-layout{
  height: 100%;
  .header-main-box{
    width: 80%;
    height: 100%;
    // flex-wrap: nowrap;
  }
  .el-container{
    // height: 100%;
    // flex-wrap: nowrap;
    .el-aside{
      height: 100%;
      background-color: #545c64;
    }
    // .el-main{
    //   padding: 0;
    //   // width: 100%;
    // }
  }
  
}
</style>

